﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

public partial class GetNewLotteryAnnouncement : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Button1_Click(object sender, EventArgs e)
    {

        long r = BLL.LotteryAnnouncement.GetHtmlEx("http://www.17500.cn/getData/ssq.TXT", Encoding.UTF8, 1);
        if (r > 0)
        {
            Response.Write("<script>alert('数据获取成功！');</script>");
        }
        else
        {
            Response.Write("<script>alert('数据获取失败！');</script>");
        }
    }

    protected void Button2_Click(object sender, EventArgs e)
    {
        long r=BLL.LotteryAnnouncement.GetHtmlEx("http://www.17500.cn/getData/dlt.TXT", Encoding.UTF8, 2);
        if (r > 0)
        {
            Response.Write("<script>alert('数据获取成功！');</script>");
        }
        else
        {
            Response.Write("<script>alert('数据获取失败！');</script>");
        }
    }

    protected void Button3_Click(object sender, EventArgs e)
    {
        long r=BLL.LotteryAnnouncement.GetHtmlEx("http://www.17500.cn/getData/p3.TXT", Encoding.UTF8, 3);
        if (r > 0)
        {
            Response.Write("<script>alert('数据获取成功！');</script>");
        }
        else
        {
            Response.Write("<script>alert('数据获取失败！');</script>");
        }
    }

    protected void Button4_Click(object sender, EventArgs e)
    {
        long r=BLL.LotteryAnnouncement.GetHtmlEx("http://www.17500.cn/getData/p5.TXT", Encoding.UTF8, 4);
        if (r > 0)
        {
            Response.Write("<script>alert('数据获取成功！');</script>");
        }
        else
        {
            Response.Write("<script>alert('数据获取失败！');</script>");
        }
    }

    protected void Button5_Click(object sender, EventArgs e)
    {
        long r=BLL.LotteryAnnouncement.GetHtmlEx("http://www.17500.cn/getData/3d.TXT", Encoding.UTF8, 5);
        if (r > 0)
        {
            Response.Write("<script>alert('数据获取成功！');</script>");
        }
        else
        {
            Response.Write("<script>alert('数据获取失败！');</script>");
        }
    }

    protected void Button6_Click(object sender, EventArgs e)
    {
        long r=BLL.LotteryAnnouncement.GetHtmlEx("http://www.17500.cn/getData/7xc.TXT", Encoding.UTF8, 6);
        if (r > 0)
        {
            Response.Write("<script>alert('数据获取成功！');</script>");
        }
        else
        {
            Response.Write("<script>alert('数据获取失败！');</script>");
        }
    }

    protected void Button7_Click(object sender, EventArgs e)
    {
        long r=BLL.LotteryAnnouncement.GetHtmlEx("http://www.17500.cn/getData/7lc.TXT", Encoding.UTF8, 7);
        if (r > 0)
        {
            Response.Write("<script>alert('数据获取成功！');</script>");
        }
        else
        {
            Response.Write("<script>alert('数据获取失败！');</script>");
        }
    }
}